package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 请购单管理对象 erp_purchase_request_management
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
@TableName("erp_purchase_request_management")
public class ErpPurchaseRequestManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)    /** 请购单ID，主键 */
    private int id;

    /** 单据类型_名称 */
    @Excel(name = "单据类型_名称")
    private String docTypeName;

    /** 请购单号 */
    @Excel(name = "请购单号")
    private String purchaseRequestNo;
    @Excel(name = "供应商")
    private int supplierId;

    @TableField(exist = false)
    private  Date createTime;

    @Excel(name = "供应商")
    @TableField(exist = false)
        private String supplierFullName;;

    public String getSupplierFullName() {
        return supplierFullName;
    }

    public void setSupplierFullName(String supplierFullName) {
        this.supplierFullName = supplierFullName;
    }
    /** 单据状态（如：待审核、已批准等） */





    /** 来源单据 */
    @Excel(name = "来源单据")
    private String sourceDoc;
    @Excel(name = "备注")
    private String remark;
    /** 审核状态（如：待审核、已审核等） */



    @Excel(name = "审批意见", readConverterExp = "如=：待审核、已批准等")
    @TableField(exist = false)
    private String opinion;
    @Excel(name = "选择（同意 拒绝）", readConverterExp = "如=：待审核、已批准等")
    @TableField(exist = false)
    private int choice;
    @TableField(exist = false)
    private  int xzid;
   private int  totalprice;
    @Excel(name = "单据状态", readConverterExp = "如=：待审核、已批准等")
    private int docStatus;
    @Excel(name = "审核状态", readConverterExp = "如=：待审核、已审核等")
    private int auditStatus;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;
    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;
    @Excel(name = "到货日期")
    private Date daohuorq;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(int totalprice) {
        this.totalprice = totalprice;
    }

    public Date getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public Date getDaohuorq() {
        return daohuorq;
    }

    public void setDaohuorq(Date daohuorq) {
        this.daohuorq = daohuorq;
    }

    public int getXzid() {
        return xzid;
    }

    public void setXzid(int xzid) {
        this.xzid = xzid;
    }

    public int getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(int supplierId) {
        this.supplierId = supplierId;
    }

    public int getChoice() {
        return choice;
    }

    public void setChoice(int choice) {
        this.choice = choice;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public int getId()
    {
        return id;
    }
    public void setDocTypeName(String docTypeName) 
    {
        this.docTypeName = docTypeName;
    }

    public String getDocTypeName() 
    {
        return docTypeName;
    }
    public void setPurchaseRequestNo(String purchaseRequestNo) 
    {
        this.purchaseRequestNo = purchaseRequestNo;
    }

    public String getPurchaseRequestNo() 
    {
        return purchaseRequestNo;
    }

    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }

    public void setSourceDoc(String sourceDoc) 
    {
        this.sourceDoc = sourceDoc;
    }

    public String getSourceDoc() 
    {
        return sourceDoc;
    }

    public int getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(int auditStatus) {
        this.auditStatus = auditStatus;
    }

    public int getDocStatus() {
        return docStatus;
    }

    public void setDocStatus(int docStatus) {
        this.docStatus = docStatus;
    }

    @Override
    public String toString() {
        return "ErpPurchaseRequestManagement{" +
                "id=" + id +
                ", docTypeName='" + docTypeName + '\'' +
                ", purchaseRequestNo='" + purchaseRequestNo + '\'' +
                ", supplierId=" + supplierId +
                ", createTime=" + createTime +
                ", supplierFullName='" + supplierFullName + '\'' +
                ", sourceDoc='" + sourceDoc + '\'' +
                ", remark='" + remark + '\'' +
                ", opinion='" + opinion + '\'' +
                ", choice=" + choice +
                ", xzid=" + xzid +
                ", totalprice=" + totalprice +
                ", docStatus=" + docStatus +
                ", auditStatus=" + auditStatus +
                ", purchaseDate=" + purchaseDate +
                ", creator='" + creator + '\'' +
                ", daohuorq=" + daohuorq +
                '}';
    }
}
